import React from 'react';
import PropTypes from 'prop-types';
class VoteFooter extends React.Component {
	static contextTypes = {
		changeNum: PropTypes.func
	};
	render() {
		let changeNum = this.context.changeNum;
		return <footer style={{
			background: 'lightblue'
		}}>
			<button onClick={changeNum.bind(this, 0)}>支持</button>
			<button onClick={changeNum.bind(this, 1)}>反对</button>
		</footer>;
	}
}
export default VoteFooter;